import request from '@/utils/request'

//根据动态获取评论列表
export const getCommentListService = (dynamicId)=>{
    return request.get('/comment/select/dynamic',{
        params:{
            dynamicId
        }
    })
}


//发表评论
export const LeaveCommentService = (content,dynamicId)=>{
    return request.post('/comment/add',{
        content,
        dynamicId
    })
}

//评论点赞
export const likeCommentService = (commentId)=>{
    return request.post('/comment/like',{},{params:{commentId}})
}

//删除评论
export const deleteCommentService = (commentId)=>{
    return request.delete('/comment/delete',{
            
            params:{
                commentId
            }  
    })
}

